import axios from 'axios';


export interface HttpResponse<T = unknown> {
  status: number;
  msg: string;
  code: number;
  data: T;
}
export function showmsg(data: any) {
  return axios.post<HttpResponse>('/api/showmsg', data);
}

export function showroommsg(data: any) {
  return axios.post<HttpResponse>('/api/showroommsg', data);
}

export function delroommsg(data: any) {
  return axios.post<HttpResponse>('/api/roommsg/delete', data);
}

export function delfriendmsg(data: any) {
  return axios.post<HttpResponse>('/api/friendmsg/delete', data);
}

export function getForward(data: any) {
  return axios.post<HttpResponse>('/api/getForward', data);
}
export function createForward(data: any) {
  return axios.post<HttpResponse>('/api/createForward', data);
}
export function deleteForward(data: any) {
  return axios.post<HttpResponse>('/api/deleteForward', data);
}
export function updateForward(data: any) {
  return axios.post<HttpResponse>('/api/updateForward', data);
}






